package com.orkhonsoft.tengrinshar.chat.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orkhonsoft.tengrinshar.chat.entity.FriendApplyEntity;
import com.orkhonsoft.tengrinshar.chat.mapper.FriendApplyMapper;



@Service("friendApplyService")
public class FriendApplyService {
	@Autowired
	private FriendApplyMapper friendApplymapper;
	
	public FriendApplyEntity queryObject(Long id){
		return friendApplymapper.queryObject(id);
	}
	public List<FriendApplyEntity> getFriendApplyEntity(FriendApplyEntity friendApplyEntity){
		return friendApplymapper.getFriendApplyEntity(friendApplyEntity);
	}
	public List<FriendApplyEntity> queryList(Map<String, Object> map){
		return friendApplymapper.queryList(map);
	}
	
	public int queryTotal(){
		return friendApplymapper.queryTotal();
	}
	
	public void save(FriendApplyEntity friendApply){
		friendApplymapper.save(friendApply);
	}
	
	public void update(FriendApplyEntity friendApply){
		friendApplymapper.update(friendApply);
	}
	
	public void delete(Long id){
		friendApplymapper.delete(id);
	}
	
	public void deleteBatch(Long[] ids){
		friendApplymapper.deleteBatch(ids);
	}
	
}
